package com.example.admin.bean;

import com.example.admin.base.BaseEntity;
import lombok.Data;

@Data
public class Elder extends BaseEntity {

        private String name;
        private String image;
        private String idCardNo;
        private String age;
        private String sex;
        private Integer status;//状态（0：禁用，1:启用  2:请假 3:退住中 4入住中 5已退住）
        private String phone;
        private String bedNumber;
        private String bedId;

        public enum ElderStatus {
            DISABLED(0, "禁用"),
            ENABLED(1, "启用"),
            LEAVE(2, "请假"),
            QUIT(3, "退住中"),
            CHECK_IN(4, "入住中"),
            QUIT_CHECK_IN(5, "已退住");
            private Integer code;
            private String message;
            ElderStatus(Integer code, String message) {
                this.code = code;
                this.message = message;
            }
            public Integer getCode() {
                return this.code;
            }
            public String getMessage() {
                return this.message;
            }
        }
}
